import request from '@/utils/request'

// 获取店长报表数据
export function getStoreReportsData(params) {
  return request({
    url: '/store/reports/data',
    method: 'get',
    params
  })
}

// 导出店长报表数据
export function exportStoreReportsData(params) {
  return request({
    url: '/store/reports/export',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

// 获取购买统计数据
export function getPurchaseStatistics(params) {
  return request({
    url: '/store/reports/purchase-statistics',
    method: 'get',
    params
  })
}

// 获取收入趋势数据
export function getRevenueTrend(params) {
  return request({
    url: '/store/reports/revenue-trend',
    method: 'get',
    params
  })
}

// 获取商品销量排行
export function getProductSalesRanking(params) {
  return request({
    url: '/store/reports/product-sales-ranking',
    method: 'get',
    params
  })
}

// 获取客户分析数据
export function getCustomerAnalysis(params) {
  return request({
    url: '/store/reports/customer-analysis',
    method: 'get',
    params
  })
} 